<%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib uri="http://micronova.com/yuzu" prefix="m"%> 
<%@page import = "com.db4o.ext.ExtObjectContainer" %>
<%@page import = "com.db4o.servlet.Db4oServlet" %>
<%@page import = "facades.*" %>
<%@page import = "auser.*" %>
<%@page import = "java.util.*" %>
<c:if test="${empty editFornitore}"><c:redirect url="/app/start/index.jsp" /> </c:if>
<% SessionFacade sfacade = new SessionFacade(session); %>

<% Fornitore fornit = (Fornitore) session.getAttribute("editFornitore"); %>

<% Map prop = new java.util.Hashtable(request.getParameterMap()); %> 
<% sfacade.setSessionBean("editFornitore",prop); %>

<c:set var='valid' value='${true}' />

<c:if test="${empty param.ragioneSociale}">
	<c:set var='eRagioneSociale' value='necessario'  scope='request'/>
	<c:set var='valid' value='${false}' />
</c:if>

 

<c:if test="${valid}">
	<% sfacade.setFromSession("editFornitore",true);  %> 
	<c:redirect url="/app/start/index.jsp" />
</c:if>

<c:if test="${!valid}">
	<jsp:forward page="edit.jsp" />
</c:if>